//
//  HttpSendHandler.m
//  MyFamework
//
//  Created by carlos on 12-10-3.
//  Copyright (c) 2012年 carlos. All rights reserved.
//

#import "HttpSendHandler.h"

@implementation HttpSendHandler
//通过枚举对象填充url和属性
+ (HttpEnty *)fillThreadMessage:(ThreadMessage *)threadMessage{
    InterfaceDefine interfaceEnum = threadMessage.interfaceDefine;
    HttpEnty *result = nil;
    switch (interfaceEnum) {
        case kETest1:
            result = [HttpSendHandler fillBase:threadMessage withUrl:kITest1];
            [result.params setValue:@"aaa" forKey:@"name"];
            break;
        case kETest2:
            result = [HttpSendHandler fillBase:threadMessage withUrl:kITest2];
            break;
            
        default:
            break;
    }
    return result;
}
//Base
+ (HttpEnty *)fillBase:(ThreadMessage *)threadMessage withUrl:(NSString *)mUrl{
    HttpEnty *result = [[HttpEnty alloc]init];
    result.url = mUrl;
    return result;
}

@end
